<script type="text/javascript">

function initialize()
{
	
	$('#createRaidDate').datepick();

	$('#calendar').fullCalendar({

		   // put your options here

		})

			
		
}


$(document).ready( function() {
    initialize();
});
	
</script>


<h1>Create New Raid:</h1>

<input id="createRaidDate" size="12" type="text"/>
<button name="createRaidButton" type="button">Create Raid</button>

<div id="calendar" class="calendar"></div>

<!-- 
<form name="raids" action="<?= $this->route("raids", "raid") ?>" method="get">

<h1>Raid Planner:</h1>
<table class="shaded">
	<tr>
		<th>Start Date</th>
		<th>Finish Date</th>
		<th>Sign-up Deadline</th>
		<th>Dungeon(s)</th>
	</tr>
<?php if(count($this->raids)) : ?>
<?php foreach ($this->raids as $raid) : ?>
<tr class="<?= $this->alternator(array("odd","even")); ?>" onclick="select(<?= $raid->id;?>);">
	<td><?= $raid->start_time;?></td>
	<td><?= $raid->finish_time;?></td>
	<td><?= $raid->signup_deadline;?></td>
	<td><?php foreach($this->dungeons[$raid->id] as $dungeon) echo $dungeon->dungeon_name . ", ";?></td>
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr>
	<td colspan='2'>No raids yet</td>
</tr>
<?php endif; ?>
</table>

<input type="hidden" name="raidId" value="null" />

</form>
 -->
